package com.shensi.api.pay.pojo;

import com.shensi.api.pay.enums.RefundStatusEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @date 2023/11/16
 */
@Setter
@Getter
//@TableName("electronic_card_refund_record")
public class ElectronicCardRefundRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
//    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 退款订单号
     */
    private String orderNo;

    /**
     * 原订单号
     */
    private String originOrderNo;

    /**
     * 充值记录id，customer_card_use_record表id字段
     */
    private Long rechargeRecordId;

    /**
     * 退款记录id,customer_card_use_record表id字段
     */
    private Long refundRecordId;

    /**
     * pay_way表pay_way_id主键
     */
    private Long payWayId;

    /**
     * 退款金额
     */
    private BigDecimal amt;

    /**
     * 退款状态 0-未退款 1-退款中 2-退款成功 3-退款失败
     */
    private RefundStatusEnum refundStatus;

    /**
     * 第三方退款订单号
     */
    private String thirdOrderNo;

    /**
     * 第三方退款流水号
     */
    private String thirdPayNo;

    /**
     * 操作人id
     */
    private Long operateUserId;

    /**
     * 退款时间
     */
    private LocalDateTime refundTime;

    /**
     *
     */
    private LocalDateTime createTime;
}